<!DOCTYPE html>
<html>
<head>
	<title>管理员列表</title>
	<link rel="stylesheet" type="text/css" href="/Template/admin/default/css/css.css">
</head>
<body>
<div class="content">
	<div class="curr-position">当前位置：管理员管理</div>
	<div class="page-top">
		<span class="fl"><a href="{{:U('admin/manager/insert')}}">+ 增加管理员</a></span>
		<span class="fr"><a href="javascript:location.reload();">刷新</a></span>
	</div>
	<table class="data-tab">
		<thead>
			<tr>
				<th class="id">ID</th>
				<th>名称</th>
				<th>手机</th>
				<th>邮箱</th>
				<th>状态</th>
				<th class="operation">操作</th>
			</tr>
		</thead>
		<tbody>
		<volist name="admlist" id="vo">
			<tr>
				<td class="id">{{$vo.id}}</td>
				<td>{{$vo.username}}</td>
				<td>{{$vo.mobile}}</td>
				<td>{{$vo.email}}</td>
				<td>
					<if condition="$vo[status] eq 0">
						<span class="disabled">已禁用</span>
					<else />
						<span class="available">已启用</span>
					</if>
				</td>
				<td>
					<if condition="$vo[id] neq 1">
					<if condition="$vo[status] eq 0">
						<a href="{{:U('admin/manager/status',array('id'=>$vo[id],'op'=>1))}}">启用</a>
					<else />
						<a href="{{:U('admin/manager/status',array('id'=>$vo[id],'op'=>0))}}">禁用</a>
					</if>
				 <a href="{{:U('admin/manager/edit',array('id'=>$vo[id]))}}">编辑</a> <a href="{{:U('admin/manager/delete',array('id'=>$vo[id]))}}">删除</a>
				 <else/>
				 <a href="{{:U('admin/manager/edit',array('id'=>$vo[id]))}}">编辑</a>
				 </if></td>
			</tr>
		</volist>
		</tbody>
	</table>
	<div class="pagenation">{{$page}}</div>
</div>
</body>
</html>